<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );

require_once( $mainframe->getPath( 'toolbar_html' ) );

$task 	= mosGetParam( $_REQUEST, 'task', FALSE );
$section 	= mosGetParam( $_REQUEST, 'section', '' );

switch ( $task ) {
	
    case "applayreport":
    break;
    case "report":
        jcsToolBarReport();
    break;

    case "us_applay":
    case "uedit":
        jcsToolBarUEdit();
    break;

    case "applycnf":
    case "config":
        JEConfig::Toolbar();
    break;
    
    case "new_subscr":
		jcsToolBarNewUSubscription();
		break;

  case "uremove":
  case "save_usubscr":
  case "usub":
  case "upublish":
  case "uunpublish":
		jcsToolBarSubscription();
		break;

  case 'applaysubscr':
  case "new":
  case "edit":
		jcsToolBarNewSubscription();
		break;

  case 'save':
  case "rremove":
  case "publish":
  case "unpublish":
  default:
		jcsToolBarDefault();
		break;
}
?>